package com.qch.router;

import org.apache.dubbo.common.URL;
import org.apache.dubbo.common.extension.Activate;
import org.apache.dubbo.rpc.cluster.Router;
import org.apache.dubbo.rpc.cluster.RouterFactory;

/**
 * @Author qch
 * @Date 2021/2/16
 * @Activate 并不是所有的组件都用到路由所以动态选
 */
@Activate
public class RestartInstanceRouterFactory implements RouterFactory {
    @Override
    public Router getRouter(URL url) {
        return new RestartInstanceRouter(url);
    }
}
